import request from "@/api/request";
import {SearchParam} from "@/types/search";

export const reqCategoryList = () => request({ url: '/api/product/getBaseCategoryList', method: 'get' })

export const reqBannerList = () => request({ url: '/mock/home/banner', method: 'get' })

export const reqSearchData = (params: SearchParam) => request({url: '/api/list', method: 'post', data: params})

export const reqGoodsData = (id: number) => request({url: `/api/item/${ id }`})